import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from'@/components/index'
import listMap  from'@/components/listPage/listMap'
import myCenter  from'@/components/myCenter/myCenter'
import buyingTools  from'@/components/buyingTools/buyingTools'
import examineSuccess  from'@/components/examineSuccess/examineSuccess'
import paySuccess  from'@/components/paySuccess/paySuccess'
import payFail  from'@/components/payFail/payFail'
import payProgramme  from'@/components/payProgramme/payProgramme'
import payOffline  from'@/components/payOffline/payOffline'
import payOnline  from'@/components/payOnline/payOnline'
import login  from'@/components/login/login'
import register  from'@/components/register/register'
import contrast  from'@/components/contrast/contrast'
import details  from'@/components/details/details'
import advertisement  from'@/components/advertisement/advertisement'


Vue.use(Router);
export default new Router({
  routes: [

    {
        path: '/',
        name: 'index',
        component:index
    },

    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/listMap',
      name: 'listMap',
      component: listMap
    },
    {
      path: '/myCenter',
      name: 'myCenter',
      component: myCenter
    },
    {
      path: '/buyingTools',
      name: 'buyingTools',
      component: buyingTools
    },
    {
      path: '/examineSuccess',
      name: 'examineSuccess',
      component: examineSuccess
    },
    {
      path: '/paySuccess',
      name: 'paySuccess',
      component: paySuccess
    },
    {
      path: '/payFail',
      name: 'payFail',
      component: payFail
    },
    {
      path: '/payProgramme',
      name: 'payProgramme',
      component: payProgramme
    },
    {
      path: '/payOffline',
      name: 'payOffline',
      component: payOffline
    },
    {
      path: '/payOnline',
      name: 'payOnline',
      component: payOnline
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/contrast',
      name: 'contrast',
      component: contrast
    },
    {
      path: '/details',
      name: 'details',
      component: details
    },
    {
      path: '/advertisement',
      name: 'advertisement',
      component: advertisement
    }
  ],
   mode: "history",
})
